package com.xquant.marketdata.marketdata.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.mapper.TirMapper;
import com.xquant.marketdata.marketdata.service.TirService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class TirServiceImpl implements TirService {


    @Autowired
    private TirMapper tirMapper;

    @Override
    public PageInfo<Map> queryTirInfoByPage(Map<String, Object> params) {
        List<Map> list = tirMapper.queryTirInfoByPage(params);
        return new PageInfo<Map>(list);
    }

    @Override
    public PageInfo<Map> queryTirPriceByPage(Map<String, Object> params) {
        List<Map> list = tirMapper.queryTirPriceByPage(params);
        return new PageInfo<Map>(list);
    }

    @Override
    public List<Map> queryTirPriceList(Map<String, Object> params) {
        List<Map> list = tirMapper.queryTirPriceList(params);
        return list;
    }


}
